package com.yuelan.apartment.domain.dto;


import com.fasterxml.jackson.annotation.JsonFormat;
import com.fasterxml.jackson.databind.annotation.JsonSerialize;
import com.fasterxml.jackson.databind.ser.std.ToStringSerializer;
import com.yuelan.apartment.common.ApaEntity;
import lombok.Data;

import java.math.BigDecimal;
import java.util.Date;

/**
 * @description: 数据传输层
 * @Author: ZhaoYi
 * @date: 24-6-23 21:23
 */
@Data
public class ApaTenantDto extends ApaEntity {

    @JsonSerialize(using = ToStringSerializer.class)
    private Long id;

    private String roomNum;

    private Long apartmentId;

    private String TenantName;

    private String phone;

    private String idNumber;

    @JsonFormat(pattern = "yyyy-MM-dd")
    private Date periodTime;

    private String area;

    private String type;

    private String furniture;

    @JsonFormat(pattern = "yyyy-MM-dd")
    private Date collectionTime;

    private BigDecimal rent;

    /**
     * Day日付、Week周付、Month月付、Quarter季付、Year年付
     */
    private String paymentType;

}
